﻿<%@ Page Language="C#" MasterPageFile="~/teachers/masterpage.Master" AutoEventWireup="true" CodeBehind="TReport.aspx.cs" Inherits="ESCHOOL.teachers.WebForm3" Title="Report" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style7
        {
            width: 100%;
        }
        .style3
        {
            width: 100%;
        }
        .style8
        {
            width: 138px;
        }
        .style9
        {
            text-align: left;
            width: 138px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

                    <p>
                        &nbsp;<br />
                    </p>
                    <asp:Panel ID="Panel3" runat="server">
                        <table class="style7">
                            <tr>
                                <td>
                                    <asp:Panel ID="Panel4" runat="server" Width="523px">
                                        <table class="style3">
                                            <tr>
                                                <td>
                                                    <table class="style3">
                                                        <tr>
                                                            <td class="style8">
                                                                &nbsp;</td>
                                                            <td>
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                &nbsp;</td>
                                                            <td>
                                                                <asp:TextBox ID="tbreportid" runat="server" Visible="False"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Name of Examination</td>
                                                            <td>
                                                                <asp:DropDownList ID="ddexam" runat="server">
                                                                    <asp:ListItem>quarterly</asp:ListItem>
                                                                    <asp:ListItem>half yearly</asp:ListItem>
                                                                    <asp:ListItem>annual</asp:ListItem>
                                                                    <asp:ListItem>three monthly</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Class Name</td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlclassid" runat="server" AutoPostBack="True" 
                                                                    onselectedindexchanged="ddlclassid_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Student Name</td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlstudentid" runat="server" AutoPostBack="True" 
                                                                    onselectedindexchanged="ddlstudentid_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Roll No</td>
                                                            <td>
                                                                <asp:TextBox ID="tbrollno" runat="server" ReadOnly="True"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Subject Name</td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlsubjectid" runat="server" 
                                                                    onselectedindexchanged="ddlsubjectid_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                &nbsp;</td>
                                                            <td>
                                                                Theory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Practical&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Project&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Max Marks</td>
                                                            <td>
                                                                <asp:TextBox ID="tbtheorymax" runat="server" Width="77px"></asp:TextBox>
                                                                <asp:TextBox ID="tbpracmax" runat="server" Width="77px"></asp:TextBox>
                                                                <asp:TextBox ID="tbpromax" runat="server" Width="77px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                Obtained marks</td>
                                                            <td>
                                                                <asp:TextBox ID="tbtheoryobt" runat="server" Width="77px"></asp:TextBox>
                                                                <asp:TextBox ID="tbpracobt" runat="server" Width="77px"></asp:TextBox>
                                                                <asp:TextBox ID="tbproobt" runat="server" Width="77px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style9">
                                                                Remark
                                                            </td>
                                                            <td class="style4">
                                                                <asp:DropDownList ID="ddlremarkid" runat="server" 
                                                                    onselectedindexchanged="ddlremarkid_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style4" colspan="2">
                                                                <asp:Panel ID="Panel5" runat="server">
                                                                    <table class="style3">
                                                                        <tr>
                                                                            <td class="style5">
                                                                                <asp:Label ID="lbtotal" runat="server" Text="Total Obt. marks/Total max marks"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                &nbsp;<asp:TextBox ID="tbtobtmarks" runat="server" ReadOnly="True"></asp:TextBox>
                                                                                &nbsp;<asp:TextBox ID="tbtotmarks" runat="server" ReadOnly="True"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="style5">
                                                                                Percentage<asp:Label ID="lbpercent" runat="server" Text="Percentage"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="tbper" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="style5">
                                                                                <asp:Label ID="lbgrade" runat="server" Text="Grade"></asp:Label>
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="tbgrade" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="style5">
                                                                                &nbsp;</td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="margin-left: 40px" class="style8">
                                                                <asp:Button ID="btninsert" runat="server" onclick="btninsert_Click" 
                                                                    Text="Insert" style="height: 26px" />
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnupdate" runat="server" onclick="btnupdate_Click" 
                                                                    Text="Update" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style8">
                                                                &nbsp;</td>
                                                            <td>
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                &nbsp;</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                    </asp:Panel>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    
                        <br />
                        <table class="style7">
                            <tr>
                                <td colspan="2">
                                    <asp:Panel ID="Panel1" runat="server" Visible="False" ScrollBars="Auto">
                                        <asp:DropDownList ID="ddsubject" runat="server">
                                        </asp:DropDownList>
                                        <asp:Button ID="btnview" runat="server" onclick="btnview_Click" 
                                            style="height: 26px" Text="View Report" />
                                        <br />
                                        <br />
                                        <p>
                                        </p>
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                                            AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" 
                                            Width="756px">
                                            <Columns>
                                                <asp:BoundField DataField="student_name" HeaderText="Student Name" />
                                                <asp:BoundField DataField="subject_name" HeaderText="subject" />
                                               <asp:BoundField DataField="total_maxmarks" HeaderText="Total Marks" />
                                                <asp:BoundField DataField="total_obtmarks" HeaderText="Obtained marks" />
                                                <asp:BoundField DataField="percentage" HeaderText="Percentage" />
                                                <asp:BoundField DataField="grade" HeaderText="Grade" />
                                                 <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:Button ID="btnedit" runat="server" 
                                                            CommandArgument='<%# Eval("report_id") %>' CommandName="Edit" 
                                                            oncommand="btnedit_Command" Text="Edit" Height="26px" 
                                                            CausesValidation="False" />
                                                        <asp:Button ID="btndelete" runat="server" 
                                                            CommandArgument='<%# Eval("report_id") %>' CommandName="Delete" 
                                                            oncommand="btndelete_Command" Text="Delete" CausesValidation="False" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                    <asp:Panel ID="Panel2" runat="server" Visible="False">
                        <table class="style7">
                            <tr>
                                <td>
                                    <asp:DropDownList ID="ddsubject0" runat="server" AutoPostBack="True" 
                                        onselectedindexchanged="ddsubject0_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <asp:Button ID="btnview2" runat="server" onclick="btnview2_Click" 
                                        Text="View Report" />
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                            AllowPaging="True" onpageindexchanging="GridView2_PageIndexChanging">
                            <Columns>
                                <asp:BoundField DataField="student_name" HeaderText="Student Name" />
                                <asp:BoundField DataField="subject_name" HeaderText="Subject" />
                                <asp:BoundField DataField="total_maxmarks" HeaderText="Total Marks" />
                                <asp:BoundField DataField="total_obtmarks" HeaderText="Obtained marks" />
                                <asp:BoundField DataField="percentage" HeaderText="Percentage" />
                                <asp:BoundField DataField="grade" HeaderText="Grade" />
                                <asp:BoundField DataField="class_name" HeaderText="Class" />
                                </Columns>
                        </asp:GridView>
    </asp:Panel>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        &nbsp;</p>
                
</asp:Content>

